import { useState } from "react";
import { TimePicker } from "antd";
const View = () => {
    const [value, setValue] = useState(null);
    const onChange = (time) => {
        console.log(time);
        setValue(time);
    };
    return (
        <>
            <h1>TimePicker时间选择器</h1>
            <TimePicker
                value={value}
                onChange={onChange}
                placeholder='选择时间'
            />
        </>
    );
};

export default View;
